package com.yayan.xh.dao;

import java.util.List;
import java.util.Map;

import com.yayan.xh.bean.BannerBean;

public interface IBannerDao {
	
	/**
	 * 查询广告
	 * @param map
	 * @return
	 * @throws Exception
	 */
	List<BannerBean> getBanner(Map<String, String> map) throws Exception;
	
	/**
	 * 查询单个
	 * @param map
	 * @return
	 * @throws Exception
	 */
	BannerBean getBannerById(Map<String, String> map) throws Exception;
	
	/**
	 * 保存广告
	 * @param map
	 * @return
	 * @throws Exception
	 */
	boolean saveBanner(Map<String, String> map) throws Exception;
	
	/**
	 * 删除广告
	 * @param map
	 * @return
	 * @throws Exception
	 */
	boolean delBanner(Map<String, String> map) throws Exception;
	
	/**
	 * 修改广告
	 * @param map
	 * @return
	 * @throws Exception
	 */
	boolean modifyBanner(Map<String, String> map) throws Exception;
	
	/**
	 * 查询广告（前台）
	 * @param map
	 * @return
	 * @throws Exception
	 */
	List<Map<String, Object>> getBannerList(Map<String, String> map) throws Exception;
}
